<template>
  <div>
      <div v-if="showAdmin">
          <AuthView></AuthView>
      </div>
      <div v-else>
          <MainYg></MainYg>
      </div>
  </div>
</template>

<script setup>
import PasswordProtectedView from '@/components/SecondPassPage/index.vue'; // 根据实际路径调整
import AuthView from "./main.vue"
import MainYg from "@/views/agency/MainYg.vue";
import {getUserType} from "@/utils/auth";

const showAdmin = ref(false)

onMounted(() => {
  console.log("getUserType", getUserType())
  if (getUserType() == '1'){
    console.log("是admin账户")
    showAdmin.value = true
  }
})
</script>
